﻿using System.Runtime.Serialization;

namespace ModelLayer
{
    [DataContract]
    public class Person
    {
        public Person(string name, string address, int postalCode, string city, long phoneNo, string email, long id)
        {
            Name = name;
            Address = address;
            PostalCode = postalCode;
            City = city;
            PhoneNo = phoneNo;
            Email = email;
            Id = id;
        }

        public Person()
        {
        }

        [DataMember]
        public string Name
        {
            get;
            set;
        }

        [DataMember]
        public string Address
        {
            get;
            set;
        }

        [DataMember]
        public int PostalCode
        {
            get;
            set;
        }

        [DataMember]
        public string City
        {
            get;
            set;
        }

        [DataMember]
        public long PhoneNo
        {
            get;
            set;
        }

        [DataMember]
        public string Email
        {
            get;
            set;
        }

        [DataMember]
        public long Id
        {
            get;
            set;
        }
    }
}